package com.imooc.security.core.social.qq.connet;

import com.imooc.security.core.social.qq.api.QQ;
import org.springframework.social.connect.ApiAdapter;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;
import org.springframework.social.oauth2.OAuth2ServiceProvider;

public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ>{



    public QQConnectionFactory(String providerId, String appId, String appSecret) {


        /**
         *providerId: 提供商的唯一标示
         *serviceProvider: 自定义的 serviceProvider (QQServiceProvider)
         *apiAdapter: 自定义的 apiAdapter (QQAdapter)
         */
        super(providerId, new QQServiceProvider(appId,appSecret), new QQAdapter());
    }
}
